package com.bdqn.service.serviceImpl;

import bean.Lobby;
import com.bdqn.dao.LobbyDao;
import com.bdqn.service.LobbyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class LobbyServiceImpl implements LobbyService {

    @Autowired
    private LobbyDao lobbyDao;

    public List<Lobby> findAll() {
        return lobbyDao.findAll();
    }


    public List<Lobby> findName(String name) {
        return lobbyDao.findName(name);
    }

    //传入id
    @Override
    public Lobby findId(Integer id) {
        return lobbyDao.findId(id);
    }
}
